<?php 
/* SVN FILE: $Id$ */
/* Itext Test cases generated on: 2009-12-14 01:09:14 : 1260749354*/
App::import('Model', 'Itext');

class ItextTestCase extends CakeTestCase {
	var $Itext = null;
	var $fixtures = array('app.itext');

	function startTest() {
		$this->Itext =& ClassRegistry::init('Itext');
	}

	function testItextInstance() {
		$this->assertTrue(is_a($this->Itext, 'Itext'));
	}

	function testItextFind() {
		$this->Itext->recursive = -1;
		$results = $this->Itext->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Itext' => array(
			'id'  => 1,
			'en'  => 'Lorem ipsum dolor sit amet',
			'ro'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>